package com.wolfpire.workflow.spring.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wolfpire.system.common.EasyuiPage;
import com.wolfpire.system.common.Page;
import com.wolfpire.system.common.base.dao.IBaseHibernateDao;
import com.wolfpire.system.common.base.service.impl.BaseHibernateService;
import com.wolfpire.workflow.dao.OperateDao;
import com.wolfpire.workflow.om.Operate;
import com.wolfpire.workflow.spring.OperateService;

@Service("operateService")
public class OperateServiceImpl extends BaseHibernateService<Operate, Long> implements OperateService {
	
	@Resource private OperateDao operateDao;

	@Override
	public List<Operate> list(Operate entity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected IBaseHibernateDao<Operate, Long> getEntityDao() {
		return this.operateDao;
	}

	@Override
	public Page<Operate> setPageDataList(EasyuiPage<Operate> page, Operate filterOperate) {
		return this.operateDao.findOperates(page, filterOperate);
	}

	@Override
	public List<Operate> queryNodeOperateList(Long nodeId) {
		return this.operateDao.queryNodeOperateList(nodeId);
	}
	
}
